const express = require('express')
const app = express()
app.use(express.json())
app.use(express.urlencoded({ extended: false }))
app.post('/user', (req, res) => {
    res.send('ok')
    //不解析默认undefined
    console.log(req.body);
})
app.post('/books', (req, res) => {
    res.send('ok!')
    //不解析默认undefined
    console.log(req.body);
})
app.listen(8765, () => {
    console.log('express server running at localhost:8765');
})